package com.hunny.decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * 开放装饰
 *
 * @author Create By Cb
 * @date 2022/05/06
 * @since 2022/5/6 14:52
 */
@Slf4j
public class OpenDecorator extends Decorator {

    /**
     * 开放装饰
     * 装饰
     *
     * @param people 人
     */
    public OpenDecorator(People people) {
        super(people);
    }

    /**
     * 开放
     */
    public void open() {
        log.warn("打开了食物包装袋...");
    }

    /**
     * 吃
     */
    @Override
    public void eat() {
        super.eat();
        this.open();
    }
}